#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>


int main()
{
    //信号捕捉:
    //1.默认捕捉
    //2.忽略
    //3.自定义
    ::signal(2,SIG_IGN);
    while(true)
    {
        pause();
    }    
    return 0;
}
